package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.param.entity.RmAviatorDicInfo;
import com.jrx.anytxn.param.mapper.base.RmAviatorDicInfoMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/***
 * 规则条件的查询
 * @author Qingyao Xing
 * @date 2019/7/12 17:50
 */
public interface ExtRmAviatorDicInfoMapper extends RmAviatorDicInfoMapper {

    /**根据规则type和机构数查询规则条件集合
     *  @param ruleType
     * @param tenantId
     * @return java.util.List<com.jrx.anytxn.param.entity.AviatorDicInfo>
     * @throw
     * @author Qingyao Xing
     * @date 2019/7/12 17:50
     */
    List<RmAviatorDicInfo> selectAllDicByParams(@Param("ruleType") String ruleType, @Param("tenantId") String tenantId);


    RmAviatorDicInfo selectByIdAndTenId(@Param("id") Long id,@Param("tenantId") String tenantId);

    int updateByIdAndTenId(RmAviatorDicInfo aviatorDicInfo);

    int deleteByIdAndTenId(@Param("id") Long id,@Param("tenantId") String tenantId);
}
